import request from '@/utils/request'

// 查询朝代简介列表
export function listHistoryDistines(query) {
  return request({
    url: '/historyDistines/historyDistines/list',
    method: 'get',
    params: query
  })
}

// 查询朝代简介详细
export function getHistoryDistines(id) {
  return request({
    url: '/historyDistines/historyDistines/' + id,
    method: 'get'
  })
}

// 新增朝代简介
export function addHistoryDistines(data) {
  return request({
    url: '/historyDistines/historyDistines',
    method: 'post',
    data: data
  })
}

// 修改朝代简介
export function updateHistoryDistines(data) {
  return request({
    url: '/historyDistines/historyDistines',
    method: 'put',
    data: data
  })
}

// 删除朝代简介
export function delHistoryDistines(id) {
  return request({
    url: '/historyDistines/historyDistines/' + id,
    method: 'delete'
  })
}
